package com.biomedica.statemachine;
/*
 * 
 * This class will hold the main State machine envirunment Context
 */
public class StateContext {

	private StateEngineEnvirunment env=new StateEngineEnvirunment();
	private StateMachineEngine Eng;
	/** set The Current State Engine That belong to this Context **/
	public void setStateMachineEngine(StateMachineEngine eng)
	{
		Eng=eng;
	}
	/** get the Current State Engine That belong to this **/
	public StateMachineEngine getStateMachineEngine()
	{
		return Eng;
	}
	
	public StateEngineEnvirunment getStateEngineEnvirunment()
	{
		return env;
	}
	public void init() {
		// TODO Auto-generated method stub
		this.getStateEngineEnvirunment().init();
	}

	public Object get(String string) {
		// TODO Auto-generated method stub
		return env.getParameter(string);
	}

	public void put(String name,Object Value) {
		// TODO Auto-generated method stub
		env.putParameter(name, Value);
	}

}
